/*WnSFnXOG6y/MvP57ze7z0Ei8IawgmK4a+GVeAvX2OmXVNfv4bfnWmlZTFj+pum5q*/
/**
 * 字符串格式校验工具
 */


const REG = {
    NUM : {
        POS_INT : /^[1-9]+[0-9]*$/
    }
}

function regNum(pattern, str){
    return str&&str.length>0&&pattern.test(str);
}

const RegUtils = {
    regNum : regNum
}

export {RegUtils, REG};


/*WnSFnXOG6y/MvP57ze7z0Ei8IawgmK4a+GVeAvX2OmXVNfv4bfnWmlZTFj+pum5q*/